3
Easy2Siksha
standardized codes, where each code corresponds to a specific character, including
letters, numbers, and special symbols.
Alphabets, Digits, and Symbols - Oh My!
• The ASCII character set includes everything you might find on a traditional keyboard.
From the letters of the alphabet (both uppercase and lowercase) to digits,
punctuation marks, and various special symbols, it covers a wide range of characters.
• For example, the ASCII code for the letter 'A' is 65, 'a' is 97, '1' is 49, and the
exclamation mark '!' is 33. These codes serve as a magical language that the
computer understands, allowing programmers to communicate their intentions
through a series of characters.
Escape Characters - Secret Codes:
• In the enchanted world of C programming, there are special characters known as
escape characters. These characters don't represent visible symbols but instead
convey special meanings. Imagine them as secret codes that trigger specific actions
when the computer encounters them.
• For instance, the escape character '\n' is like a magic spell for a new line. When you
use it in your potion (code), the cursor moves to the next line, creating a visually
appealing layout. There are escape characters for tabs, carriage returns, and more,
each adding a touch of magic to the presentation of your spells.
Extended ASCII - Adding More Spells to the Book:
• While ASCII is fantastic, sometimes you need a bit more magic. That's where
Extended ASCII comes into play. It's like an expanded version of the ASCII character
set, offering additional characters and symbols.
• In this extended realm, you might find characters like accented letters, additional
punctuation, and other symbols that weren't present in the original ASCII. This
extended set gives programmers a broader palette to work with, ensuring that their
magical spells can be as intricate as needed.
Unicode - Unleashing Global Magic:
• As the magical potion of programming expanded to a global scale, a new and even
more powerful character set emerged—Unicode. Unicode is like the grand library of
characters, covering not only the basic Latin alphabet but characters from various
writing systems around the world.
• With Unicode, you can include characters from languages like Chinese, Arabic, or
Russian in your magical potions. It ensures that the language of programming is truly
universal, breaking down barriers and allowing programmers from different parts of
the world to conjure spells in their native tongues.
Constants and Variables - The Ingredients of Spells: